package info.douyi.dps.serviceImpl;

import info.douyi.dps.mapper.InfluenceMapper;
import info.douyi.dps.model.Influence;
import info.douyi.dps.service.InfluenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InfluenceServiceImpl implements InfluenceService {

    @Autowired
    private InfluenceMapper influenceMapper;

    @Override
    public List<Integer> findPidByBid(Integer bid) {
        return influenceMapper.selectPidsByBid(bid);
    }

    @Override
    public void addInfluence(Influence influence) {
        influenceMapper.insertSelective(influence);
        return;
    }
}
